<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png">

    <h2>{{ count }}</h2>
    <h2>{{ $store.getters.oddList }}</h2>

    <h3> {{ $store.state.user.username }} --- {{ $store.state.setting.address }} </h3>
    <ChildA />
    <ChildB />
  </div>
</template>

<script>
import { mapState } from 'vuex'
import ChildA from './components/child-a'
import ChildB from './components/child-b'

export default {
  name: 'App',
  components: {
    ChildA,
    ChildB
  },
  computed: {
    ...mapState([
      'count'
    ])
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
